package com.ifeng.stock;

/**
 * TODO 把Constants.java改成配置文件，例如Constants.ini读入
 * 
 * @author guest
 *
 */
class Constants {
	/**
	 * 超大买入
	 */
	public static String bigin    = "http://app.finance.ifeng.com/hq/trade/zijin_list.php?level=4&type=z";
	/**
	 * 散户卖出
	 */
	public static String smallout = "http://app.finance.ifeng.com/hq/trade/zijin_list.php?level=1&type=j";
	/**
	 * 超大卖出
	 */
	public static String bigout    = "http://app.finance.ifeng.com/hq/trade/zijin_list.php?level=4&type=j";
	/**
	 * 散户买入
	 */
	public static String smallin = "http://app.finance.ifeng.com/hq/trade/zijin_list.php?level=1&type=z";
	
	/**
	 * 目前ifeng.com固定提供前100名
	 */
	public static int maxstocks = 100;//ifeng.com provide top 100 stocks 
	
    /**
     * 提取股票代码的正则表达式
     */
	public static String number_pattern = 
		".*<td><a href=\"http://finance.ifeng.com/app/hq/stock/[sz|sh].*/index.shtml\" target=\"_blank\">\\d{6}</a></td>.*";

	/**
	 * 提取股票名称的正则表达式
	 */
	public static String name_pattern = 
		".*<td><a href=\"http://finance.ifeng.com/app/hq/stock/[sz|sh].*/index.shtml\" target=\"_blank\">.{2,}</a></td>.*";

	
	public static String suffix = "</a></td>";
	public static String prefix = "target=\"_blank\">";
	
}
